package cn.rxls.community.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * (Orders)表实体类
 *
 */
@SuppressWarnings("serial")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("orders")
public class Orders {
    @TableId(type = IdType.ASSIGN_ID)
    //订单id    
    private Long ordersId;

    //创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone = "GMT+8")
    private Date createTime;
    //更新时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone = "GMT+8")
    private Date updateTime;
    //订单内容
    private String ordersMsg;
    //订单状态  0未完成  1已完成   2待评价
    private Integer ordersState;
    //所属用户id
    private Long userId;
    //订单类型id
    private String ordersCategory;

    //产品或服务id   如：维修订单主键id  商品主键id
    private Long productsId;
    //产品数量
    private Integer productsNum;
}
